/*
*表头内容和下拉框内容的定义
*/
#include "headandcomb.h"
HeadAndComb::HeadAndComb(){
    header.resize(25);
    combitem.resize(25);
    inithead();
    initcomb();
}

void HeadAndComb::inithead(){
    //遥信表表头
    header[0] << "设备类型" << "测试项" << "测试内容" << "预期结果";
    //加量表表头
    header[1] << "加量类型" << "加量值" << "相角" << "持续时间";
    //遥测表表头
    header[2] << "设备类型" <<"测试项" << "测试内容" << "相角" << "持续时间" << "预期结果";
    header[3] << "测试模板";
    header[4] << "设备名称" << "测试项" << "测试内容" << "相角" << "预期结果" << "测试结果" << "测试结论" << "判断时间";
    //header[5]//在initTables函数中设置内容


}
void HeadAndComb::initcomb(){
    //设备类型选项
    combitem[0] << "请选择设备类型" << "配网开关站" << "配网开关" << "配网刀闸" << "配网变压器" << "配网终端" << \
                  "配网母线" << "配网接地刀闸" << "配网故障指示器";
    //遥信选项
    combitem[1] << "请选择测试项" << "遥信值" << "保护" << "辅助节点遥信值" << "上游动作" << "下游动作" << \
                 "重合闸动作" << "近后备动作" << "是否触发关联信号" << "开关拒动";
    //遥信本体信号下拉框
    combitem[2] << "请选择测试内容" << "合闸" << "分闸";
    //遥信关联信号下拉框
    combitem[3] << "请选择测试内容" << "过流保护动作" << "过流保护复归" << "零序保护动作" << "零序保护复归";
    //遥测选项
    combitem[4] << "请选择加量类型" << "电流不平衡度" << "功率因数" << "有功值" << "无功值" << "电流值" << \
                 "A相电流幅值" << "B相电流幅值" << "C相电流幅值" << "相电压值" << "AB线电压值" << "BC线电压值" << \
                 "CA线电压值" << "零序电流幅值";
    //相角选择
    combitem[5] << "请选择相角" << "0" << "120" << "240";
    //遥测测试内容持续时间下拉框
    combitem[6] << "请选择持续时间" << "6s" << "5s" << "4s" << "3s" << "2s" << "1s";
    //report页面遥控方式下拉框
    combitem[7] << "请选择控制方式" << "自动" << "手动";
    combitem[20] << "请选择测试设备" << "test_device1";
}
